#coding=utf-8
import copy
print("#@@@@@ 数组 copy 深层复制 @@@ before :")
names = ['aaa' , 'bbb' , 'ccc', ['111','1a1a']]
AA = copy.deepcopy(names)
print(names)
print(AA)
print("======change names[2] & AA[-1][1]==== after :")
names[2] = '333'
AA[-1][1] = 'b2b2'
print(names)
print(AA)

print("#@@@@@ 数组 copy 浅层复制 @@@ before : ")
names = ['aaa' , 'bbb' , 'ccc', ['111','1a1a']]
AA = names.copy()
print(names)
print(AA)
print("======change names[2] & AA[-1][-1]==== after : ")
names[2] = 'CCC'
AA[-1][-1] = 'b2b2'
print(names)
print(AA)

print("#@@@@@ 数组 copy 复制 @@@ before : ")
names = ['aaa' , 'bbb' , 'ccc']
AA = names.copy();
print(names)
print(AA)
print("======change names[1]==== after : ")
names[1] = 'BBB'
print(names)
print(AA)

print("#@@@@@ 数组 == 复制 @@@ before ： ")
names = ['aaa' , 'bbb' , 'ccc']
AA = names
print(names)
print(AA)
print("======change names[0]==== after : ")
names[0] = 'AAA'
print(id(names))
print(names)
print(AA)
